using Spark.Parser.Code;
using System.Linq;

namespace NRails.Spark.ChunkVisitors
{
    public module TypeHelper
    {
        public CorrectType(@type : Snippets) : Snippets 
        {
            foreach (s in @type)
                when (s != null && s.Value != null)
                    s.Value = s.Value.Replace('<', '[').Replace('>', ']');

            @type
        }
    }
}